package com.campus.backend.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.IntegerIdBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商户入驻申请表
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-05-12
 */
@Getter
@Setter
@TableName("merchant_apply")
@ApiModel(value = "MerchantApply对象", description = "商户入驻申请表")
public class MerchantApply extends IntegerIdBaseEntity<MerchantApply> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商家用户ID")
    @TableField("merchant_user_id")
    private Integer merchantUserId;

    @ApiModelProperty("子商户号")
    @TableField("sub_mchid")
    private String subMchid;

    @ApiModelProperty("商户名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("商户Logo")
    @TableField("logo")
    private String logo;

    @ApiModelProperty("所属食堂ID")
    @TableField("canteen_id")
    private Integer canteenId;

    @ApiModelProperty("商户地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("营业执照图片")
    @TableField("license_image")
    private String licenseImage;

    @ApiModelProperty("店内照片")
    @TableField("shop_image")
    private String shopImage;

    @ApiModelProperty("商户描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("审核状态：0-待审核，1-审核通过，2-审核拒绝")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("审核拒绝原因")
    @TableField("reject_reason")
    private String rejectReason;

    @ApiModelProperty("申请时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
